package exio;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author: knowno
 * @create: 2025-09-16 15:37
 * @Version 1.0
 **/
public class TestBufferedWriter {
    public static void main(String[] args) throws IOException {

        FileWriter fileWriter = new FileWriter("g:\\0916-3.txt");

        BufferedWriter bw = new BufferedWriter(fileWriter);

        //直接写入字符串
        bw.write("hello world");
        bw.close();
        System.out.println("写入成功");
    }
}
